<!--
 * @FilePath: index.vue
 * @@author: wjj
 * @Date: 2024-10-10 12:57:53
 * @@Description: new js file
-->
<template>
  <div class="container">
    <!-- 菜单 -->
    <div class="menu" @click="toHome">回到首页</div>
    <div class="menu">3D</div>
    <!-- 上 -->
    <div class="top clearfix">
      <div class="item1 leftfix"><load1></load1></div>
      <div class="item2 leftfix"><load2></load2></div>
      <div class="item3 leftfix"><load3></load3></div>
      <div class="item4 leftfix"><load4></load4></div>
      <div class="item5 leftfix"><load5></load5></div>
    </div>
    <!-- 页脚 -->
    <div class="footer">备案号110</div>
  </div>
</template>

<script setup lang="ts">
import load1 from '@/3D/load1.vue'
import load2 from '@/3D/load2.vue'
import load3 from '@/3D/load3.vue'
import load4 from '@/3D/load4.vue'
import load5 from '@/3D/load5.vue'
import { useRouter } from 'vue-router'
//获取路由器对象
let $router = useRouter()
function toHome() {
  // $router.push('/')
  $router.push({
    name: 'layout',
  })
}
</script>

<style scope>
* {
  margin: 0;
  padding: 0;
}
.top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
/* .leftfix {
  float: left;
} */
.clearfix::after {
  content: '';
  display: block;
  clear: both;
}
.container {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.menu {
  height: 30px;
  background-color: #ccc;
  margin-top: 10px;
  line-height: 30px;
}
.item1,
.item3,
.item4,
.item5,
.item2 {
  width: 200px;
  height: 200px;
  line-height: 198px;
  border: 1px solid black;
  /* margin-right: 10px; */
  display: flex;
  align-items: center; /** 纵轴对齐方式，默认是纵轴 子元素垂直居中 */
  justify-content: center; /**纵轴对齐方式，默认是纵轴 */
}
.content {
  margin-top: 10px;
}
.footer {
  height: 60px;
  background-color: #ccc;
  margin-top: 10px;
  line-height: 60px;
}
</style>
